package com.example.day05.exercise;

public class ShaperTest {

    public static void main(String[] args) {
        Shape circle = new Circle(5);
        Shape rect = new Rect(3, 5);
        Shape square=new Square(6);

        Shape[] shapes=new Shape[3];
        shapes[0]=circle;
        shapes[1]=rect;
        shapes[2]=square;

        for (Shape shape : shapes) {
            System.out.println("===============");
            System.out.println(shape.printArea());
            System.out.println(shape.printgirth());
        }
    }
}
